package com.ding;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import com.ding.pojo.Singer;
import com.ding.pojo.audience.Audience;

@SpringBootApplication
public class Application {

	public static void main(String[] args) {
		ConfigurableApplicationContext context = SpringApplication.run(Application.class, args);
		Singer singer=context.getBean(Singer.class);
		Audience audience=context.getBean(Audience.class);
		singer.sing();
		audience.response();
		
	}
}
